import React, { Component } from 'react'
import PropTypes from 'prop-types'


export default class PropChild extends Component {
  render() {
    return (
      <div>
        <h2>分页</h2>
        <span>1</span>
        <span>2</span>
        <span>3</span>
        <span>4</span>
        <span>5</span>
        ...
        <span>总页数 : {this.props.totalNum}</span>
        <h3>{this.props.msg}</h3>
      </div>
    )
  }
}

PropChild.propTypes={
    totalNum : PropTypes.number.isRequired,
    msg : PropTypes.string.isRequired
}
